<template>
<div>
    <header>
        <div>
            <p>忘记密码</p>
        </div>
        <div>
            <p @click="returnLogin">登录</p>
        </div>
    </header>
    <Main>
        <form action="">
            <input type="text" placeholder="账号">
            <input type="password" placeholder="密码">
            <input type="password" placeholder="确认密码">
            <button @click="submit">确认</button>
        </form>
    </Main>
</div>
</template>

<script>
export default {
    methods:{
        returnLogin(){
            this.$router.push('/login');
        },
        submit(){
            alert('修改密码成功')
        }
    }
}
</script>

<style scoped>
header {
    padding: 1rem 2rem;
    margin-bottom: 1em;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.486); */
    display: flex;
    justify-content: space-between;
    background-color: rgba(24, 127, 223, 0.904);
    box-shadow: 0 1rem 2rem rgba(0,0,0,.1);
    border-radius: 0 0 .5rem .5rem
    ;
}

p{
    font-size: 18px;
    cursor: pointer;
}
p:hover{
    color: burlywood;
}

Main {
    margin: 0 2rem;
}

Main form{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 50px;
    box-shadow: 0 1rem 2rem rgba(0,0,0,.1);
    border-radius: .5rem;
    padding: 30px 30px;
    width: 500px;
    margin-left: 30%;
}

Main form input{
    margin-bottom: 20px;
    padding: 0.2rem 0.4rem;
    width: 20rem;
    line-height: 2rem;
    border-radius: 0.5rem;
    background-color: rgba(226, 185, 138, 0.11);
    border: none;
}

Main form button{
    padding: 0.5rem 1rem;
    background-color:rgb(54, 21, 241);
    color: white;
    border: none;
}
</style>
